<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      margin: 0;
    }

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .header {
      width: 100%;
      overflow: hidden;
    }

    .header-left {
      float: left;
    }

    .header-left li {
      float: left;
      color: #222;
      margin: 20px 20px 0;
    }

    .header-right {
      float: right;
      height: 60px;
      line-height: 60px;
    }

    .header-right button {
      margin-right: 30px;
      outline: none;
    }

    .header-right button:first-child {
      background: #ffff;
      border: none;
    }

    .header-right button:last-child {
      color: #fff;
      background: blue;
      border: none;
      border-radius: 5px;
      padding: 5px 10px;
    }

    .logo {
      width: 270px;
      height: 130px;
      margin: 0 auto;
    }

    .logo img {
      width: 100%;
      height: 100%;
    }

    .search-box {
      position: relative;
      width: 650px;
      height: 45px;
      margin: 0 auto;
    }

    .search-box input {
      width: 500px;
      height: 45px;
      border: 2px solid #ddd;
      padding: 0;
      box-sizing: border-box;
      outline: none;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
      border-right: none;
    }

    .search-box button {
      width: 150px;
      position: absolute;
      top: 0;
      right: 0;
      border: none;
      background: blue;
      height: 45px;
      color: #fff;
      font-size: 20px;
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
      outline: none;
    }

    .search-box .icon {
      width: 24px;
      height: 20px;
      background-image: url('./images/icon.png');
      background-repeat: no-repeat;
      background-position: 0 -50px;
      position: absolute;
      top: 50%;
      right: 170px;
      margin-top: -10px;
    }

    .new-list {
      width: 700px;
      margin: 0 auto;
    }

    .new-list .title {
      width: 100%;
      overflow: hidden;
    }

    .new-list .title span:first-child {
      float: left;
    }

    .new-list .title span:last-child {
      float: right;
    }

    .new-list .list {
      width: 100%;
    }

    .new-list .list li {
      width: 50%;
      float: left;
      margin: 10px 0;
    }

    .new-list .list li:nth-child(2n+1) span {
      color: red;
    }

  </style>
</head>
<body>
  <div class="header">
    <ul class="header-left">
      <li>新闻</li>
      <li>hao123</li>
      <li>地图</li>
      <li>视频</li>
      <li>贴吧</li>
      <li>学术</li>
      <li>更多</li>
    </ul>

    <div class="header-right">
      <button>设置</button>
      <button>登录</button>
    </div>
  </div>

  <div class="logo">
    <img src="../html/images/baidu.png" alt="">
  </div>

  <div class="search-box">
    <input type="text">
    <button>百度一下</button>
    <div class="icon"></div>
  </div>

  <div class="new-list">
    <div class="title">
      <span>百度热榜</span>
      <span>换一换</span>
    </div>

    <ul class="list">
      <li>
        <span>1</span>
        美国将六家中国媒体列为外国使团
      </li>
      <li>
        <span>2</span>
        美国将六家中国媒体列为外国使团
      </li>
      <li>
        <span>3</span>
        美国将六家中国媒体列为外国使团
      </li>
      <li>
        <span>4</span>
        美国将六家中国媒体列为外国使团
      </li>
      <li>
        <span>5</span>
        美国将六家中国媒体列为外国使团
      </li>
      <li>
        <span>6</span>
        美国将六家中国媒体列为外国使团
      </li>

      <div style="clear: both;"></div>
    </ul>
  </div>
</body>
</html>